package com.ht.domin.bo;

import com.ht.dto.MembersDTO;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

//控制层传到业务层
@NoArgsConstructor
@AllArgsConstructor
@Data
@Builder
public class MembersBO {

    private Long membersId;//订单id
    private BigDecimal payment;
    private String paymentType;
    private String status;
    private Date createTime;
    private Integer membersType;
    private Date endTime;
    private String shoppingCode;
    private String userId;
    private String receiverMobile;
    private String sourceType;
    private String orderNum;
    private String tradeNum;
    private Date expireTime;

    public MembersBO(MembersDTO dto){
        this.membersId = dto.getMembersId();
        this.payment = dto.getPayment();
        this.paymentType = dto.getPaymentType();
        this.status = dto.getStatus();
        this.createTime = dto.getCreateTime();
        this.membersType = dto.getMembersType();
        this.endTime = dto.getEndTime();
        this.shoppingCode = dto.getShoppingCode();
        this.userId = dto.getUserId();
        this.receiverMobile = dto.getReceiverMobile();
        this.sourceType = dto.getSourceType();
        this.orderNum = dto.getOrderNum();
        this.tradeNum = dto.getTradeNum();
        this.expireTime = dto.getExpireTime();
    }

}
